package org.jogre.mayi.server;

import org.jogre.common.games.Card;

public class MayIConstants {

	public static int PLAY_AREAS = 4;
	
	// Round Structure (cards dealt, runs, groups)
	public static int [][] ROUND_STRUCTURE = {
	   	{8, 1, 1},
	   	{9, 2, 0},
	};
	
	public static int getPoints(Card card) {
		int order = card.getOrderValue();
		
		if (order > 9 && order < 14) {
			//if (order == 12 && card.getSuit() == Card.SPADE) {
				//return 20;
			//}
			return 10;
		}
		else if (order == 14) {
			return 15;
		}
		else if (order < 10) {
			return order;
		}
		
		return 0;
	}
}
